package com.maxie.component;

public abstract class Coffee {

    protected String desc;

    protected double cost;

    public Coffee() {
        this.desc = "默认";
    }

    public Coffee(String desc) {
        this.desc = desc;
    }

    /**
     * 价格
     * @return
     */
    public abstract double getCost();

    /**
     * 描述
     * @return
     */
    public String getDescription() {
        return desc;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }
}
